﻿using System;
using System.Collections.Generic;
using System.Text;
using He.Common;
using System.Data;

namespace He.DAL
{
    public partial class job
    {
        public readonly string TblName = SysKeys.TABLE_PREFIX + "job";

        #region  Method

        /// <summary>
        /// 修改一列数据
        /// </summary>
        public void UpdateField(int id, string strValue)
        {
            DbHelperSQLite.UpdateField(TblName, id, strValue);
        }

        /// <summary>
        /// 获得前几行数据
        /// </summary>
        public DataSet GetList(int top, string strWhere, string filedOrder)
        {
            return DbHelperSQLite.GetList(TblName, top, "*", strWhere, filedOrder);
        }

        /// <summary>
        /// 获得查询分页数据
        /// </summary>
        public DataSet GetPageList(int pageSize, int currentPage, string strWhere, string orderFiled)
        {
            return DbHelperSQLite.GetPageList(TblName, pageSize, currentPage, "*", strWhere, orderFiled);
        }
        #endregion  Method
    }
}
